<template>
  <!-- <video src="../../bgv.mp4" loop="loop" autoplay="autoplay" muted="muted" class="loginVideo"></video> -->



  <div class='login-box'>
    <img src="" alt="">
    <img src="https://img0.baidu.com/it/u=1949749373,3672671892&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=801" alt=""
      class="bgimg">
    <namePass v-if="msg"></namePass>
    <iphon v-else></iphon>
  </div>



</template>
<script setup>
import { ref } from 'vue'
import namePass from '../../components/namePass.vue';
import iphon from '../../components/iphon.vue'
import { storeToRefs } from 'pinia'
import { useLogin } from '../../store/cart'
let changeLogin = useLogin()
let { msg } = storeToRefs(changeLogin)

</script>
<style lang="scss" scoped>
@font-face {
  font-family: myfont;
  src: url(../../汉仪黑咪体简.TTF)
}

:deep(.el-input) {
  width: 400px
}

.login-box {
  // border: 1px solid;
  // background-color: rgba(255, 255, 255, 0);
  width: 800px;
  position: fixed;
  right: 750px;
  top: 350px;
  height: 800px;
  background-color: rgba(255,255,255,0.4);

  :deep(button) {
    width: 300px;
    height: 60px;
    margin-right: 70px;
    margin-top: 30px;
    font-size: 30px;
  }

  :deep(.qrcode) {
    height: 80px;
    text-align: end;

    .icon {
      width: 4em;
      height: 4em;
      cursor: pointer;
    }
  }

  :deep(.title) {
    font-size: 60px;
    text-align: center;
    padding-bottom: 40px;
    color: rgb(160 106 45);
    font-weight: 900;
    font-family: myfont;
  }

  :deep(.demo-ruleForm) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 180px;
    margin-top: 30px;
  }

  :deep(.otherLogin) {
    margin-left: 260px;
    margin-top: 20px;
    padding-bottom: 40px;
    font-size: 30px;

    .icon {
      width: 2em;
      height: 2em;
      vertical-align: middle;
      margin-right: 20px;
    }
  }

  :deep(input) {
    height: 60px;
    // background-color: rgba(0,0,0,0.2);
    // background-color: transparent;
    // border: 0;
    color: rgb(160 106 45);
    font-size: 40px;
    line-height: 60px;
    margin-top: 10px;
    // width: 400px;
  }

  :deep(.ipt3) {
    width: 250px;
    .el-input__wrapper {
      border-radius: 0px;
      // border-top-left-radius: 4px;
      // border-bottom-left-radius: 4px;
      box-shadow: none;

    }
  }

  :deep(.validateImg) {
    width: 150px;
    // background-color: rgba(255, 255, 255, 0.3);
    height: 47px;
    text-align: center;
    line-height: 47px;
    // border-top-right-radius: 4px;
    // border-bottom-right-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
  }

  :deep(.el-form-item__label) {
    color: rgb(160 106 45) !important;
    height: 46px;
    line-height: 46px;
    font-size: 30px;
    margin-top: 20px;
  }

  :deep(.el-input__wrapper) {
    background-color: transparent;
    box-shadow: none;
    border: 0;
    border-bottom: 2px solid rgb(20, 156, 194);
    border-radius: 0px;
  }
}

.loginVideo {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  size: cover;
}
.bgimg {
  position: absolute;
  z-index: -1;
  opacity: 0.9;
  width: 500px;
  height: 800px;
  left:-500px;
}

//错误标识的颜色
// :deep(.el-form-item.is-error .el-input__validateIcon){
//   color:rgb(20, 156, 194) ;
// }

:deep(.el-input) {
  --color: rgb(7, 241, 38);
}
</style>

  